<?php

/**
 * 制作者：九哥
 * 业务：用户接口
 * 时间：2019-03-23
 */


Route::group(['prefix'=>'my','namespace' => 'My'],function(){
    /**
     * 我的设置
     */
    Route::group(['prefix'=>'myset'],function(){
        Route::post('userinfo','MySetController@getUserInfo');
        Route::post('head-upload','MySetController@setHeadUpload');
        Route::post('nick-set','MySetController@setNick');
        Route::post('sex-set','MySetController@setSex');
        Route::post('pwd-set','MySetController@setPwd');
//        Route::post('logout','MySetController@setLogout');
        //获取员工信息
        Route::group(['prefix'=>'staff'],function() {
            Route::post('basic-get', 'StaffController@getBasicInfo');
            Route::post('ext-get', 'StaffController@getExtInfo');
        });
        //获取工厂信息
        Route::group(['prefix'=>'company'],function() {
            Route::post('basic-get', 'CompanyController@getBasicInfo');
            Route::post('file-get', 'CompanyController@getFile');
            Route::post('product-get', 'CompanyController@getProduct');
            Route::post('equip-get', 'CompanyController@getEquip');
            Route::post('yield-get', 'CompanyController@getYield');
            Route::post('env-get', 'CompanyController@getEnv');
            Route::post('style-get', 'CompanyController@getStyle');
            Route::post('design-get', 'CompanyController@getDesign');
        });
        //收货地址
        Route::group(['prefix'=>'area'],function() {
            Route::post('list', 'ShopAddressController@getAreaList');
            Route::post('add', 'ShopAddressController@addArea');
            Route::post('edit', 'ShopAddressController@editArea');
            Route::post('del', 'ShopAddressController@delArea');
        });
    });

    /**
     * 公司订单
     */
    Route::group(['prefix'=>'order'],function() {
        //公司货单
        Route::post('com-order-list-get', 'OrderController@getComOrderList');
        Route::post('com-show', 'OrderController@getComShow');
        Route::post('com-partner-set', 'OrderController@setComPartner');
        Route::post('com-order-track-get', 'OrderController@getComTrack');
        //工厂抢单
        Route::post('fac-order-list-get', 'OrderController@getFacOrderList');
        Route::post('fac-show', 'OrderController@getFacShow');
        Route::post('fac-order-add-set', 'OrderController@setFacOrderAdd');
        //公司生产中订单
        Route::post('com-order-make-get', 'OrderController@getComOrderMake');
        Route::post('com-order-check-get', 'OrderController@getComCheck');
        Route::post('com-order-check-set', 'OrderController@setComCheck');
        Route::post('com-order-sure-set', 'OrderController@setComCheckSure');
        //工厂生产中订单
        Route::post('fac-order-make-get', 'OrderController@getFacOrderMake');
        Route::post('fac-order-make-status-set', 'OrderController@getFacOrderMakeStatus');
    });

    /**
     * 公司发布
     */
    Route::group(['prefix'=>'pub'],function() {
        Route::post('order-get', 'MyPubController@getOrderList');
        Route::post('job-get', 'MyPubController@getJobList');
        Route::post('news-get', 'MyPubController@getNewsList');
    });

    /**
     * 招聘
     */
    Route::group(['prefix'=>'job'],function() {
        //公司招聘列表
        Route::post('company-get', 'RecruitController@getComJobList');
        Route::post('company/show', 'RecruitController@getComJobShow');
        //工人应聘列表
        Route::post('staff-get', 'RecruitController@getStaffJobList');
        Route::post('staff/show', 'RecruitController@getStaffJobShow');
        //招聘流程
        Route::post('recruit/meet-set', 'RecruitController@setMeet'); //邀请面试
        Route::post('recruit/meet2-set', 'RecruitController@setMeet2'); //邀请结果
        Route::post('recruit/finish-set', 'RecruitController@setMeet'); //面试结果
        Route::post('recruit/comment-get', 'RecruitController@getComment'); //获取评价
        Route::post('recruit/comment-set', 'RecruitController@setComment'); //设置评价
        //工人应聘状态
        Route::post('staff-status-set', 'RecruitController@setJobStaffStatus');
        //工人简历显示
        Route::post('resume-get', 'RecruitController@getResume');
        //工人简历搜索设置
        Route::post('resume-set', 'RecruitController@setResume');
    });

//    /**
//     * 我的账户
//     */
//    Route::group(['prefix'=>'account'],function() {
//        Route::post('index', 'AccountController@getIndex');
//        Route::post('income', 'AccountController@setIncome'); //充值
//        Route::post('alipayNotify', 'AccountController@setAlipayNotify'); //阿里异步通知
//        Route::post('out', 'AccountController@setOut'); //提现
//        Route::post('bind', 'AccountController@getBind'); //判断绑定
//        Route::post('success-in', 'AccountController@setSuccessIn'); //充值成功
//        Route::post('success-out', 'AccountController@setSuccessOut'); //提现成功
//        Route::post('history', 'AccountController@getHistory'); //历史账单
//        //平台交易收入
//        Route::post('trade', 'AccountController@getTradeList');
//        //平台交易收入设置
//        Route::post('trade-set', 'AccountController@setTrade');
//        Route::post('trade-finish', 'AccountController@setTradeFinish');
//        //平台交易密码设置
//        Route::post('trade-pwd', 'AccountController@setTradePwd');
//    });
});


/**
 * APP版本更新
 */
Route::get('app/version', 'My\MySetController@getAppVersion');